package xyz.syyrjx.service.impl;

import org.springframework.stereotype.Service;
import xyz.syyrjx.entity.Order;
import xyz.syyrjx.entity.User;
import xyz.syyrjx.mapper.OrderMapper;
import xyz.syyrjx.service.OrderService;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Mr.Wan
 * @date 2022/10/11 - 20:20
 */
@Service
public class OrderServiceImpl implements OrderService {
    @Resource
    private OrderMapper orderMapper;

    @Override
    public List<Order> getOrderByUer(User user) {
        List<Order> orderList = orderMapper.selectOrderByUid(user);
        return orderList;
    }
}
